<template>
	<view class="login_page">
		<view class="content">
			<view class="title">
				登录
			</view>
			<view class="account">
				<image class="person" src="../../static/img/account.png" mode="aspectFill"></image>
				<input class="insert" type="text" value="" placeholder="请输入手机号" />
			</view>
			<view class="account">
				<image class="person" src="../../static/img/password.png" mode="aspectFill"></image>
				<input  class="insert" type="password" value="" placeholder="请输入密码" />
			</view>
			<button class="button" type="default">登录</button>
		</view>
		
		<!-- <view>梧桐树</view> -->
		<!-- <view class="btn"><button type="primary" @click="getUserInfo">手动授权登录</button></view> -->
	</view>
</template>

<script>
	import app from '@/util/api.js'
	export default{
		data(){
			return{
				
				
				
			}
		},
		methods:{
		
		
			
		},
		mounted() {
			
		},
		
		onLoad(e) {
			 var pages = getCurrentPages(); // 当前页面
			 var beforePage =pages[pages.length - 2].route // 前一个页面
			 app.save('routerurl',beforePage.split('pages/')[1])
			// this.getUserInfo()
		 //    let code = this.getUrlCode('code')
		 //    console.log(code)
		 //    if(code !== null || code !== "") {
		 //        // this.getOpenidAndUserinfo(code)
		 //    }else{
			
			// 	console.log(11111)
			// }
			// 	this.getCode()
		},
		
		
	

	}
</script>

<style scoped>
.login_page{
	text-align: center;
	width: 100%;
	height: 600rpx;
	background: #FFFFFF;

}
.content{
	padding: 0 30rpx;
	margin-top: 118rpx;
}
.title{
	font-size: 52rpx;
	font-family: PingFang SC;
	font-weight: 500;
	color: #393939;
	line-height: 22rpx;
	margin-bottom: 121rpx;
	
}
.person{
		width: 34rpx;
		height: 34rpx;
}
.account{
	width: 90%;
	height: 88rpx;
	background: #FFFFFF;
	border: 2px solid #EEEEEE;
	border-radius: 5px;
	margin-bottom: 28rpx;
	display: flex;
	align-items: center;
	padding: 0 28rpx;
}
.content .account .insert{
	width: 100%;
	background-color: #fff!important;
	height: 88rpx;
	line-height: 88rpx;
	text-align: left;
	padding-left: 20rpx;
}
.button{
	height: 88rpx;
	background: #FFC03C;
	border-radius: 5px;
	line-height: 88rpx;
	color: #fff;
	margin-top: 60rpx;
}
</style>
